package com.tiancheng.trade.merchant.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tiancheng.trade.commom.core.data.PageInfo;
import com.tiancheng.trade.merchant.model.Business;
import com.tiancheng.trade.merchant.vo.merchant.QueryPageBusinessVO;

import java.util.List;

/**
 * 业务管理 service
 */
public interface IBusinessService extends IService<Business> {
    /**
     * 新业务
     * @return 业务编码
     */
    String newBusiness(Business business);

    PageInfo<Business> queryPage(QueryPageBusinessVO businessVO);

    List<Business> queryList(QueryPageBusinessVO merchantVO);

    void saveBusiness(Business business);

    void delete(Long id);
}
